<?php

$router->get('/list/user', ['middleware' => 'managerapi:user-list', 'uses' => 'PlatformUserController@listUser']);
$router->get('/day/new/user', ['middleware' => 'managerapi:user-day-new', 'uses' => 'PlatformUserController@dayNewUser']);
$router->get('/week/new/user', ['middleware' => 'managerapi:user-week-new', 'uses' => 'PlatformUserController@weekNewUser']);
$router->get('/month/new/user', ['middleware' => 'managerapi:user-month-new', 'uses' => 'PlatformUserController@monthNewUser']);
$router->get('/user/detail', ['middleware' => 'managerapi:user-detail', 'uses' => 'PlatformUserController@userDetail']);
$router->put('/update/user', ['middleware' => 'managerapi:user-edit', 'uses' => 'PlatformUserController@updateUser']);
$router->delete('/delete/user', ['middleware' => 'managerapi:user-delete', 'uses' => 'PlatformUserController@deleteUser']);
$router->get('/user/tree', ['middleware' => 'managerapi:user-tree', 'uses' => 'PlatformUserController@userTree']);
$router->get('/user/sub', ['middleware' => 'managerapi:user-sub', 'uses' => 'PlatformUserController@userSub']);
$router->post('/user/integral/recharge', ['middleware' => 'managerapi:user-recharge', 'uses' => 'PlatformUserController@integralRecharge']);
$router->put('/user/audit', ['middleware' => 'managerapi:user-active', 'uses' => 'PlatformUserController@activeUser']);
$router->post('/password/verify', ['middleware' => 'managerapi:user-active', 'uses' => 'PlatformUserController@passwordVerify']);
// $router->put('/user/send', ['middleware' => 'managerapi:user-send', 'uses' => 'PlatformUserController@send']);
$router->put('/set/partner', ['middleware' => 'managerapi:user-active', 'uses' => 'PlatformUserController@setPartner']);
$router->put('/set/shareholder', ['middleware' => 'managerapi:user-active', 'uses' => 'PlatformUserController@setShareholder']);